package com.mhys.hms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mhys.hms.entity.Reward;

/**
 * 奖惩接口
 */
public interface RewardManagerMapper {
	/*
	 * 查询所有奖惩
	 */
	public List<Reward> queryAllReward();
	/*
	 * 条件查询奖惩
	 */
	public List<Reward> queryReward();	
	/*
	 * 查询指定id奖励
	 */
	public List<Reward> queryRewardById(@Param("rId")String rId);
	/*
	 * 更新奖励
	 */
	public Integer updateReward(@Param("reward")Reward reward);
	/*
	 * 添加奖励
	 */
	public Integer addRewardInfo(@Param("reward")Reward reward);
	/*
	 * 删除指定id奖励
	 */
	public Integer delRewardInfo(@Param("rId")String rId);
	/*
	 * 分页模糊查询
	 */
	public List<Reward> queryRewardPage(
			@Param("pageSize")int pageSize,
			@Param("startNum")int startNum,
			@Param("deptNo")String deptNo,
			@Param("deptName")String deptName);
	/*
	 * 分页模糊查询
	 */
	public int queryTotalCount(
			@Param("deptNo")String deptNo,
			@Param("deptName")String deptName);
}
